<ul class="layui-nav">
	{foreach $fromKV as $k => $v}
		<li class="layui-nav-item {if $k == $thisFrom}layui-this{/if}"><a href="{:url()}?from={$k}&factory_id={$thisFactoryId}">{$v}</a></li>
	{/foreach}
</ul>
<ul class="layui-nav layui-bg-green">
	{foreach $factoryKV as $factoryId => $factoryName}
		<li class="layui-nav-item {if $factoryId == $thisFactoryId}layui-this{/if}"><a href="{:url()}?from={$thisFrom}&factory_id={$factoryId}">{$factoryName}</a></li>
	{/foreach}
</ul>